package com.example.qxfw.common.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.qxfw.common.entity.ContourSettingQx;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/************************************
 *
 * @author : HuangDeYin Jolly
 * @since : JDK 11
 * @Date : 2023/8/30  星期三   14:29
 * @description :
 *
 ***************************************/
@Mapper
@DS("qx")
public interface ContourSettingMapperXmlQx extends BaseMapper<ContourSettingQx> {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(ContourSettingQx record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(ContourSettingQx record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    ContourSettingQx selectByPrimaryKey(Integer id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(ContourSettingQx record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(ContourSettingQx record);

    List<ContourSettingQx> selectByElementTypeAndValue(@Param("elementType") String elementType, @Param("elementValue") float elementValue);
}